/* Kanye@Home Server
 */

#ifndef _SERVER_H
#define	_SERVER_H

#include <string>

#ifdef WIN32
#define WINVER 0x0501
#define _WIN32_WINNT 0x0501
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#include <tchar.h>
#else
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <netdb.h>
#endif

class Server
{
public:
  Server();
  virtual ~Server();

  void Listen();

private:
  void Cleanup();
  
  SOCKET sock, seversocks[FD_SETSIZE];
  int numsocks;
  fd_set sockset;
};

#endif	/* _SERVER_H */

